require "rubygems"
require File.dirname(__FILE__) + '/../../rspec/lib/autotest/rspec'
class Autotest::OpenidengineRspec < Autotest::Rspec
  def initialize
    super
    
    # add_mapping(%r%^spec/.*\.rb$%) { |filename, _| 
    #   filename 
    # }
    # 
    # add_mapping(%r%^spec/helpers/.*\.rb$%) { |filename, _|
    #   puts "hit1"
    #   # at.files_matching %r%^spec/(models|controllers|views|helpers)/.*_spec\.rb$%
    #   :all
    # }
    # 
    # add_mapping(%r%_helper\.rb%) { |f, _|
    #   puts "hit2"
    #   :all
    # }
    
    # at.add_mapping(%r%^lib/(.*)\.rb$%) { |_, m| 
    #   ["spec/#{m[1]}_spec.rb"]
    # }
    # at.add_mapping(%r%^spec/(spec_helper|shared/.*)\.rb$%) { 
    #   at.files_matching %r%^spec/.*_spec\.rb$%
    # }
    
  end
end
